home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
001
/
protime.arc
/
PROTIME.DOC
< prev
Wrap
Text File
|
1985-06-14
|
5KB
|
128 lines
Instructions (revision 2) for:
"ProTime for MS-DOS, version 2.2, 13-June-1985"
Copyright (C) 1985 by Wayne Conrad, All Rights Reserved
NOTICE: Permission is granted to use and distribute this program free of
charge, provided that that no fee of any kind is charged for such use or
distribution.
PURPOSE
Protime is designed for use with the Prometheus Promodem 1200. The Promodem
has a built in real-time clock. ProTime reads the time string from the
Promodem and sets the DOS time accordingly. So, if you have a Promodem,
then the ProTime program could be an acceptable substitute for a hardware
clock board.
SETTING THE PROMODEM'S TIME
Before you can use ProTime, you need to make sure your Promodem's time
and date is set correctly. Fire up your favorite communications program,
and type
AT@T<return>
The Promodem will respond with a the current date and time. If it is not
correct, then set it with this command:
AT@T=mm/dd/hh/mmPP<return>
where: mm is the current month, from 1 to 12
dd is the current day, from 1 to 31
hh is the hours, from 1 to 12 (civilian time)
mm is the minutes
PP is either "AM" or "PM"
You can then enter the "AT@T" command to see if you set it properly.
You should leave your promodem on continuously unless you have the optional
command processor with battery-backup. If you do not have the battery-
backup and you turn the modem off, it will forget the time and date.
INSTALLING PROTIME
To cause ProTime to automatically set the date and time upon boot-up, put
the program on your boot disk and add the following line to your
AUTOEXEC.BAT file:
PROTIME/<computer-type>
where <computer-type> is one of the following:
I if you have an IBM-PC or close compatible
S if you have a Sanyo 555
For example, here is how to create an AUTOEXEC.BAT file which will run
Protime upon boot-up on an IBM-PC:
A>COPY CON: AUTOEXEC.BAT
PROTIME/I <--Or /S for the Sanyo 555
^Z <--Enter a control-z
1 file(s) copied
A>
SETTING THE YEAR
The Promodem does not keep track of the year. Therefore, there are three
different ways that the ProTime program uses to determine what year it is:
(1) If the DOS year is already set to 1985 or greater, then it is assumed
to be valid and is used as the current year
(2) If the DOS year is invalid, then the program attempts to read the
current year from the disk file 'PROTIME.DTA'. If it finds this
file, and if it is able to read it successfully, then it uses it
for the current year
(3) If both (1) and (2) are unsuccessful, then the year is assumed to
be 1985.
Throughout 1985, the program should have no problem determining the correct
year. After 1985, you will need to create a disk file PROTIME.DTA which
contains the current year. Here is how to do that:
A>COPY CON: PROTIME.DAT
1986 <--Enter the current year
^Z <--Enter a control-Z
1 file(s) copied
A>
END-OF-MONTH and END-OF-YEAR rollover
The Promodem thinks that there are 31 days in each month. If the Protime
program finds a date like 9/31, it will assume that the month has changed,
and correct it to 10/1. However, as soon as the REAL DATE changes to
10/2, the promodem will roll over the 10/1, and Protime will be unable to
tell that this is in fact the incorrect date. So, at the beginning of
each month, you need to use your communication program to tell the
Promodem what the date REALLY is.
Also, when the year changes, you will need to enter the new year in the
PROTIME.DAT.
SUPPORT FOR OTHER COMPUTERS
I would like to make ProTime work with as many computers as possible. The
source code is written in Turbo Pascal, version 2.00B for PC-DOS. All it
takes to get this program to run on other MS-DOS computers is to change the
serial-communications routines, which are strategically separated from the
rest of the program. If your computer will not run ProTime, and you have
the ability to program the serial port of your computer, please let me know
and I'll see that you get a copy of the source code.
My mailing address is:
Wayne Conrad
5656 North 17th Avenue, apt E42
Phoenix, AZ 85015
My bulletin-board is:
Fido 5 in Net 114, "Pascalaholics Anonymous"
(602) 246-1786, 24 hours/day, 300/1200 bps